<template>
  <div id="app">
    <el-container style="height: 100vh">
      <!-- 顶部导航 -->
      <el-header
        style="
          background-color: #409eff;
          color: white;
          text-align: center;
          font-size: 20px;
        "
      >
        学生信息管理系统
      </el-header>

      <!-- 主体部分 -->
      <el-container>
        <!-- 主内容区域 -->
        <el-main style="padding: 20px">
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>


<script setup>
</script>

<style scoped>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin: 0;
}

.el-container {
  display: flex;
  flex-direction: column;
  height: 100%; /* 全屏适配 */
}

.el-header {
  height: 60px;
  line-height: 60px; /* 垂直居中 */
  padding: 0;
}

.el-aside {
  padding: 10px 0;
}

.el-main {
  overflow-y: auto; /* 主内容区域可滚动 */
}
</style>
